# Contributor: Adrian Siekierka <kontakt@asie.pl>
# Maintainer: Adrian Siekierka <kontakt@asie.pl>
pkgname=openttd-opensfx
pkgver=0.2.3
pkgrel=1
pkgdesc="Free sound effect set for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
license="CC-SamplingPlus-1.0"
options="!check" # No test suite
source="https://cdn.openttd.org/opensfx-releases/$pkgver/opensfx-$pkgver-all.zip"
builddir="$srcdir/opensfx-$pkgver"
install_if="openttd"

package() {
	mkdir -p "$pkgdir/usr/share/games/openttd/data"
	install -Dm644 *.cat *.obs "$pkgdir/usr/share/games/openttd/data"
}

sha512sums="ee4f4659201f1b6829fcea3c66416573d11e50988ef33452c2e9867bee8e68ddbf978ca805802b2b4188c624e814816300e69c8b78bb80c9604841be706c96cc  opensfx-0.2.3-all.zip"
